<?php
namespace app\index\controller;

use think\Controller;
use Common\Controller\BaseController;
use think\Request;
use think\Session;

/*
 * 2019-03-14-11:59
 * name:DMH
 *
 * */
class User extends Controller
{
 public function user(){
     $user = session('member');
     if(!$user){
         header("Location:./../index/login/login");
     }
     $id['memberid'] = session('member.id');
     $res = db('user')->where($id)->find();
     //dump($res);exit;
     $this->assign('list',$res);
     return $this->fetch();
 }
}